import threading
from PySide2.QtCore import Signal
from model import Uploader

class Manager(object):
    _instance_lock = threading.Lock()

    currentUploador = Uploader()

    consoleWidget = None

    def __init__(self):
        pass

    def __new__(cls, *args, **kwargs):
        if not hasattr(Manager, "_instance"):
            with Manager._instance_lock:
                if not hasattr(Manager, "_instance"):
                    Manager._instance = object.__new__(cls)
        return Manager._instance
        
